<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2022/6/9
  Time: 15:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
  <%!
      //java类
      public String name = "张三";
      public void show(){
          System.out.println("name = " + name);
      }
  %>
  <%
    //java方法中的内容
      int age = 20;
      System.out.println("age = " + age);
  %>
  <%=age%>
</body>
</html>
